package com.shi;

import com.shi.entity.InfoVo;
import com.shi.service.InfoService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * Author 史豪通
 * Date 2024/11/20 20:37
 */
@RestController
@RequestMapping("/info")
public class InfoController {
    @Resource
    InfoService infoService;

    @RequestMapping("/get")
    public List<InfoVo> getInfo(String startTime, String endTime) {
        return infoService.getInfo(startTime, endTime);
    }
}
